-- GENERATED SPELL FOR [Scourge Warder] --


function spell0_8525(pUnit, Event) --@Shadow Shield,n/a--
pUnit:FullCastSpellOnTarget(12040,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8525', 30285, 1)
end

function spell1_8525(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_8525', 5308, 1)
end

function Sorts_8525(pUnit, Event)
local choix_sorts_8525 = math.random(0, 1)
if choix_sorts_8525 == 0 then
pUnit:RegisterEvent('spell0_8525', 1, 1)
end
if choix_sorts_8525 == 1 then
pUnit:RegisterEvent('spell1_8525', 1, 1)
end
end

function mob8525_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8525', math.random(1500, 3000), 1)
end

function mob8525_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8525_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8525_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8525, 1, 'mob8525_Action')
RegisterUnitEvent(8525, 2, 'mob8525_Leave')
RegisterUnitEvent(8525, 3, 'mob8525_Kill')
RegisterUnitEvent(8525, 4, 'mob8525_Die')
